]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
unlockDialog: Fix centering of label in screen shield
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 5 Sep 2012 17:23:45 +0000 (14:23 -0300)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 5 Sep 2012 17:26:01 +0000 (14:26 -0300)
The code here was trying to center the label, but that didn't
happen because we allocated the entire space to the label, which
still plonks it at the top.

js/ui/unlockDialog.js

index b18c18da0c19643290cba6554b04e678456c805a..6fcbda74731e0f8f17d92a19752ace65c3772222 100644 (file)
@@ -41,6 +41,7 @@ const UserWidget = new Lang.Class({
         this.actor.add(this._label,
                        { expand: true,
                          x_fill: true,
+                         y_fill: false,
                          y_align: St.Align.MIDDLE });
 
         this._userLoadedId = this._user.connect('notify::is-loaded',